#ifndef __LCD__
#define __LCD__

#include "gpio.h"

void lcd_bl(uint8_t value);
void lcd_cs(uint8_t value);
void lcd_wr(uint8_t value);
void lcd_rd(uint8_t value);
void lcd_rs(uint8_t value);
void lcd_data_in();
void lcd_data_out();
void lcd_data_set(uint16_t data);
uint16_t lcd_data_get();
void lcd_wr_reg(uint16_t address);
void lcd_wr_data(uint16_t data);
uint16_t lcd_rd_data();
void lcd_9341_init();
void lcd_set_cursor(uint16_t x, uint16_t y);
void lcd_draw_point(uint16_t x, uint16_t y, uint16_t color);
uint16_t lcd_read_point(uint16_t x, uint16_t y);
void lcd_clear(uint16_t color);
void lcd_show_char(uint16_t x, uint16_t y, char chr, uint16_t color);
void lcd_show_string(uint16_t x, uint16_t y, char *buffer, uint16_t color);
void lcd_draw_cross(uint16_t x, uint16_t y, uint16_t length, uint16_t color);

#endif